--[[
* coder  : dzlua
* email  : 505544956@qq.com
* module : trans-client
* path   : .
* file   : xmake.lua
* time   : 2018-01-24 13:13:57
--]]

-- the debug mode
if is_mode("debug") then
    
    -- enable the debug symbols
    set_symbols("debug")

    -- disable optimization
    set_optimize("none")
end

-- the release mode
if is_mode("release") then

    -- set the symbols visibility: hidden
    set_symbols("hidden")

    -- enable fastest optimization
    set_optimize("fastest")

    -- strip all symbols
    set_strip("all")
end

-- add target
target("trans-client")

    -- set kind
    set_kind("binary")

    -- add files
    add_files("src/*.cpp") 

    add_links("evpp","glog")

    add_links("pthread")

set_languages("c99", "cxx14")